using System;

[Serializable]
public class PlayerModel
{
    public int curStage = 0;      // 当前关卡进度
    public int playerID = 0;      // 玩家ID（可用于多存档）
    public int playerHP = 100;      // 玩家生命值
    public int playerDamage = 1;  // 玩家攻击力
    public float playerSpeed = 1; // 玩家移动速度
    public int playerGold = 0;    // 玩家金币数量
    
    public int upgradeArmorLevel = 0;
    public int upgradeDamageLevel = 0;
    public int upgradeHealthLevel = 0;

    // 可选：重写ToString方法便于调试
    public override string ToString()
    {
        return $"Stage: {curStage}, ID: {playerID}, HP: {playerHP}, " +
               $"Damage: {playerDamage}, Speed: {playerSpeed}, Gold: {playerGold}";
    }
}